Skip to content

Instantly share code, notes, and snippets.

@ryanorsinger
ryanorsinger / list_comprehension_practice.py
Last active April 29, 2026 21:14
17 List Comprehension Exercises
# 17 list comprehension problems in python
fruits = ['mango', 'kiwi', 'strawberry', 'guava', 'pineapple', 'mandarin orange']
numbers = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 17, 19, 23, 256, -8, -4, -2, 5, -9]
# Example for loop solution to add 1 to each number in the list
numbers_plus_one = []
for number in numbers:
numbers_plus_one.append(number + 1)
@rizkaz
rizkaz / shell-novice-cheatsheet.md
Last active April 29, 2026 21:12
command cheat sheet

Shell Novice command list

===

Command Usage Description
PS1 PS1='$' set the command prompt to $
whoami whoami display logged in user
pwd pwd print working directory
ls ls list directory contents
@HellBz
HellBz / Scum.php
Created June 17, 2023 11:13
This is a GameQ-Class for SCUM, that send a Query to Master-Server from SCUM
<?php
/**
* This file is part of GameQ.
*
* GameQ is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GameQ is distributed in the hope that it will be useful,
@awfm9
awfm9 / voice_guidelines.md
Created April 29, 2026 03:50
Voice Guidelines for AI Agents

Voice Guidelines

Why This Exists

LLM output has a recognizable signature β€” hedging, filler, false balance, corporate cadence. This block captures what to do instead. Every principle here is either extracted from Max's corrections, observed in his own writing, or vetted from external sources.

Core Principles

Don't optimize for "sounding human." Good writing sounds human as a side effect. Optimizing for it produces worse writing β€” fake typos, forced slang, manufactured negativity, programmatic sentence-length wobble. Write well for the actual context; authenticity follows.

Fit the medium. Chat and replies: running prose, minimal formatting, no decorative structure. Docs and specs: structure is expected, use it. Email: prose first, lists for action items. Long-form: pick an angle, don't let dates and milestones become the spine. Over-structuring casual writing is as bad as under-structuring technical writing.

@lawndoc
lawndoc / cloc-gh
Last active April 29, 2026 21:07
Count the total lines of code for a user or organization in GitHub (excludes forks)
#!/usr/bin/env bash
# Author: C.J. May @lawndoc
# Usage: cloc-gh <username>
# Prereqs: cloc gh
cloc_repo () {
gh repo clone "$1" temp-linecount-repo -- --depth 1 > /dev/null 2>&1 &&
cloc temp-linecount-repo | grep SUM | awk '{ print $5 }' >> line_count.txt &&
rm -rf temp-linecount-repo
@azzzdf
azzzdf / index.html
Created April 29, 2026 21:01
Untitled
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@cmer
cmer / README.md
Last active April 29, 2026 21:05
Ultimate LLM Prompt for Deep Codebase Analysis & Documentation

🧠 Ultimate LLM Codebase Brain Dump Prompt

This prompt is designed for GPT-5, Claude Opus 4.1, Cursor, Claude Code, and cursor-agent to perform a deep, structured analysis of any codebase without pasting the entire repo into chat.

It guides the LLM to:

  • Browse and discover the codebase using built-in repo tools
  • Read only the necessary files in intelligent order
  • Analyze the system at high, mid, and low levels
  • Identify features, their business purposes, how they work, and how they interact
  • Output a complete master knowledge document inside codebase-analysis-docs/
@EtiealOzen
EtiealOzen / index.html
Created April 29, 2026 21:03
Nirvana bongo
<!DOCTYPE html>
<html lang="am">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>α‹¨α‰’αŠ•αŒŽ αŒ¨α‹‹α‰³ GIF ፈጣαˆͺ | α‹¨α‰΄αˆŒαŒαˆ«αˆ αˆšαŠ’ αŠ α•</title>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active April 29, 2026 21:03
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
autoinstall:
version: 1
packages:
- ubuntu-desktop
- tree
- wget
- curl
- gnupg
- ca-certificates